package com.zhx.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * Demo的springboot启动类
 *
 * @author zhx
 * @create 2017-11-06 10:20
 **/
@SpringBootApplication(scanBasePackages = {"com.zhx.demo","org.activiti.rest","com.ygsoft.activiti"})
@EnableWebMvc
public class DemoApplication extends SpringBootServletInitializer{

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DemoApplication.class);
    }


    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class,args);
    }
}
